package com.zhaotianhao.controller;import com.zhaotianhao.util.PDFUtils;import java.io.IOException;import java.util.Properties;/** * 这个类的作者是45466 * 开发的日期：2022/1/13 **/// 获取配置信息public class BwConfig {    private static final  Properties properties = new Properties();    static {        String fileName= "";        try {            String os = System.getProperty("os.name");            if(!os.toLowerCase().startsWith("win")){ // linux 操作系统                fileName="/config-linux.properties";            }else{                fileName="/config-win.properties";            }            properties.load(PDFUtils.class.getResourceAsStream(fileName));        } catch (IOException e) {            System.err.println("加载配置文件错误"   + fileName);        }    }    public static Properties getProperties() {        return properties;    }}